home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / bytesc88.arc / ISPUNCT.C < prev    next >
Text File  |  1987-10-04  |  256b  |  9 lines

  1. #define NOCCARGC  /* no argument count passing */
  2. /*
  3. ** return 'true' if c is a punctuation character
  4. ** (all but control and alphanumeric)
  5. */
  6. ispunct(c) int c; {
  7.   return (!isalnum(c) && !iscntrl(c));
  8.   }
  9.